package dapps.service.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dapps.dao.jdbc.UserJdbcDao;
import dapps.entity.user.User;

@Service
//默认将类中的所有函数纳入事务管理.
@Transactional
public class UserjdbcManager {
	@Autowired
	private UserJdbcDao userDao;

	protected UserJdbcDao getEntityDao() {
		return userDao;
	}


	public void save(User u) {
		userDao.updateUser(u);
	}
	public void delUser(Long id) {
		userDao.delUser(id);
	}
	

}
